FROM docker.io/flink:alpine

ENV FLINK_HOME /opt/flink
ENV PATH $PATH:$FLINK_HOME/bin

ADD docker-entrypoint.sh ${FLINK_HOME}/bin/
RUN chmod +x ${FLINK_HOME}/bin/docker-entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["sh", "-c"]
